﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using YXQ.Dao.ViewModel;
namespace YXQ.Service
{

    public class ProjectService : IProjectService
    {


        ProjectDao dao = new ProjectDao();


        #region IProjectService 成员

        public List<Y_Project> GetList(int startIndex, int maxRow, out int recordcount)
        {

            return dao.GetList(startIndex, maxRow, out recordcount);

        }


        #endregion


        #region IProjectService 成员

        public int Save(ProjectModel obj)
        {

            return dao.Save(obj);

        }


        #endregion


        #region IProjectService 成员

        public ProjectModel GetOneById(int id)
        {

            return dao.GetOneById(id);

        }


        #endregion

        #region IProjectService 成员
        public int DelById(int id)
        {

            return dao.DelById(id);

        }


        #endregion



        public List<ProjectModel> GetPlist(int tpid)
        {
            return dao.GetPlist(tpid);
        }


        public List<ProjModel> GetPlist(string pname,string compName, string stime, string etime, int startIndex, int maxRow, int tpid, out int record)
        {
            return dao.GetPlist(pname, compName, stime, etime, startIndex, maxRow, tpid, out record);
        }


         
    }

}

